## code to prepare `ascn` dataset goes here

ascn <- structure(list(
  chromosome = c(
    "chr1", "chr1", "chr1", "chr1",
    "chr1", "chr1", "chr1", "chr2", "chr3", "chr4", "chr4", "chr4",
    "chr4", "chr5", "chr6", "chr6", "chr6", "chr7", "chr7", "chr7",
    "chr7", "chr7", "chr7", "chr7", "chr7", "chr7", "chr7", "chr7",
    "chr7", "chr8", "chr9", "chr10", "chr11", "chr11", "chr12", "chr12",
    "chr12", "chr13", "chr13", "chr14", "chr14", "chr14", "chr14",
    "chr15", "chr16", "chr16", "chr17", "chr18", "chr19", "chr19",
    "chr19", "chr20", "chr21", "chr21", "chr22", "chr1", "chr1",
    "chr1", "chr1", "chr1", "chr1", "chr1", "chr1", "chr1", "chr1",
    "chr1", "chr2", "chr3", "chr3", "chr4", "chr5", "chr5", "chr6",
    "chr7", "chr8", "chr8", "chr8", "chr8", "chr8", "chr8", "chr8",
    "chr8", "chr8", "chr8", "chr8", "chr8", "chr8", "chr8", "chr8",
    "chr8", "chr8", "chr8", "chr8", "chr8", "chr8", "chr9", "chr10",
    "chr11", "chr11", "chr11", "chr12", "chr13", "chr14", "chr14",
    "chr14", "chr14", "chr15", "chr16", "chr17", "chr18", "chr18",
    "chr19", "chr19", "chr19", "chr19", "chr20", "chr20", "chr20",
    "chr20", "chr20", "chr20", "chr20", "chr20", "chr20", "chr20",
    "chr20", "chr21", "chr22", "chr22"
  ), start = c(
    69511, 152213165,
    152350611, 241355798, 241916196, 245646071, 248574018, 41509,
    319773, 85635, 52095047, 53927454, 54976192, 58183, 292599, 29888471,
    29975228, 195594, 38256357, 38358907, 49167850, 54755725, 55343841,
    56011697, 56937323, 63138930, 104204151, 142492223, 142796491,
    213193, 116832, 47317, 197535, 2922588, 125564, 57244872, 59053890,
    18171438, 24446644, 18601543, 21853084, 22506770, 106828092,
    19878550, 29959, 2597076, 213887, 47554, 281325, 8949929, 8966760,
    87623, 5227622, 45492472, 10699933, 69511, 3602546, 16620040,
    16621999, 18840007, 31755889, 36471464, 46286529, 47000942, 143541847,
    170947416, 41404, 319773, 179898132, 85635, 58183, 50399127,
    304582, 195476, 213193, 60387748, 67051170, 67113877, 67219415,
    69794508, 73092896, 76984236, 85439752, 87874052, 94467651, 96145564,
    104148754, 117818581, 123380665, 123645963, 124900712, 132033233,
    138265880, 143049133, 144778161, 116832, 47317, 197473, 74355319,
    109841641, 14814, 18171438, 18601543, 36875116, 55138550, 62779985,
    19882284, 29959, 204680, 47554, 20951491, 281325, 24163358, 45517825,
    54105841, 87623, 1135418, 4784359, 5862931, 8646203, 16731635,
    52187034, 57170827, 58986063, 63489189, 64198815, 5143164, 10699933,
    16196823
  ), end = c(
    152157056, 152315381, 241139294, 241916139,
    245611985, 248522492, 248918428, 242119035, 198120923, 52095008,
    53576234, 54976135, 190025891, 181283458, 29888245, 29975206,
    170584376, 38249520, 38358882, 48925185, 54656684, 55260290,
    55999143, 56686720, 63138904, 104204109, 142492174, 142796458,
    159233474, 145054255, 138177459, 133641910, 2922541, 134387723,
    57244653, 59053847, 133217171, 24446619, 114346672, 21853079,
    22506715, 106827983, 106875122, 101876287, 2595964, 90096391,
    83094287, 80202756, 8949896, 8966655, 58586385, 64273629, 45488441,
    46664392, 50778024, 3602380, 16620037, 16621998, 18839988, 31744688,
    36471458, 46286452, 46967880, 125088054, 170945461, 248918428,
    242119035, 179887859, 198120923, 190042033, 45695833, 181283431,
    170584376, 159233474, 60281082, 67014450, 67112150, 67218192,
    69794350, 73092891, 76984155, 85341753, 87874020, 94467551, 95947865,
    104093675, 117812987, 123371869, 123645805, 124727963, 132033152,
    138265814, 143049098, 144774809, 145054324, 138177459, 133641910,
    74355292, 109423806, 134987691, 133203968, 114346672, 36875070,
    55138320, 62712768, 106875122, 101974028, 90096386, 83240259,
    15323277, 80202756, 24163285, 45517632, 54103226, 58586337, 1135276,
    4784233, 5773106, 8646175, 16528479, 52186920, 56638026, 58910965,
    63489182, 64106803, 64273629, 46664392, 16196814, 50782504
  ),
  segVal = c(
    4, 3, 4, 2, 53, 2, 3, 4, 4, 3, 5, 61, 3, 4, 4,
    3, 4, 5, 8, 5, 13, 61, 12, 59, 4, 5, 6, 8, 5, 4, 4, 2, 3,
    4, 4, 35, 4, 5, 4, 4, 7, 4, 2, 4, 3, 4, 4, 4, 6, 8, 6, 4,
    4, 3, 4, 2, 1, 2, 2, 1, 2, 1, 2, 1, 4, 2, 2, 2, 1, 2, 3,
    2, 2, 2, 2, 4, 1, 5, 1, 4, 10, 4, 1, 4, 6, 9, 1, 3, 4, 5,
    15, 7, 5, 2, 5, 2, 3, 2, 4, 1, 2, 2, 1, 2, 3, 2, 2, 2, 2,
    2, 1, 1, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 6, 2, 8, 5, 1, 1,
    2
  ), minor_cn = c(
    2, 1, 2, 0, 2, 0, 1, 2, 2, 1, 2, 7, 1, 2,
    2, 1, 2, 2, 4, 2, 2, 1, 2, 2, 1, 2, 2, 3, 2, 2, 2, 0, 1,
    2, 2, 2, 2, 2, 2, 2, 3, 2, 1, 2, 1, 2, 2, 2, 2, 3, 2, 2,
    2, 1, 2, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1,
    1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1,
    1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0,
    1
  ), sample = c(
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-02-2485-01", "TCGA-02-2485-01",
    "TCGA-02-2485-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01",
    "TCGA-05-4422-01", "TCGA-05-4422-01", "TCGA-05-4422-01"
  )
), row.names = c(
  NA,
  -129L
), class = c("data.table", "data.frame"))

colnames(ascn)[4] <- "total_cn"
ascn <- as.data.frame(ascn)

usethis::use_data(ascn, overwrite = TRUE)
